package com.apitest.config;

import com.apitest.moudle.ContentType;

import java.util.Map;

/**
 * @program: APITest
 * @description:
 * @author: shixing
 * @create: 2021-05-04 17:55
 **/
public class Parameters {
    private static ContentType CONTENT_TYPE = ContentType.JSON;
    private static String host = null;

    public static ContentType getContentType() {
        return CONTENT_TYPE;
    }

    public static void setContentType(ContentType contentType) {
        CONTENT_TYPE = contentType;
    }
    public static Map<String,String> assertMap = null;

    public static String getHostEnv(){
        if(host == null){
            return System.getenv("API_HOST");
        }else {
            return host;
        }
    }
}
